﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SourceConverter.Components
{
    public class ExtSenseType
    {
        public static string ParseMethodName(string name) {
            if (name == "set") name = "set";
            if (name == "get") name = "get";
            if (name == "namespace") name = "namespace";
            return name;
        }
        
        public static string ParseParamName(string name) {
            if (name == "etc.") name = "etc";
            return name;
        }
        
        public static bool IsExcluded(ExtClass ec) {
            if (ec.Name == "Array") return true;
            if (ec.Name == "Date") return true;
            if (ec.Name == "Function") return true;
            if (ec.Name == "Number") return true;
            if (ec.Name == "String") return true;
            if (ec.Namespace == "DragDropMgr") return true;
            
            return false;
        }
    }
}
